package net.xdclass.entity;

import com.baomidou.mybatisplus.annotation.TableName;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import java.time.LocalDateTime;
import java.io.Serializable;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

/**
 * <p>
 * 
 * </p>
 *
 * @author lixin
 * @since 2024-08-14
 */
@Data
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
@TableName("user")
@ApiModel(value="User对象", description="")
public class User implements Serializable {

    private static final long serialVersionUID = 1L;

    @TableId(value = "id", type = IdType.AUTO)
    private Long id;

    @ApiModelProperty(value = "昵称")
    private String name;

    @ApiModelProperty(value = "密码")
    private String pwd;

    @ApiModelProperty(value = "头像")
    private String headImg;

    @ApiModelProperty(value = "用户签名")
    private String slogan;

    @ApiModelProperty(value = "0表示女，1表示男")
    private Integer sex;

    @ApiModelProperty(value = "积分")
    private Integer points;

    private LocalDateTime createTime;

    @ApiModelProperty(value = "邮箱")
    private String mail;

    @ApiModelProperty(value = "盐，用于个人敏感信息处理")
    private String secret;


}
